<template>
    <div class="about">
        <h1>This is an details page</h1>
        <newDetails></newDetails>
    </div>
</template>
<script>
export default {
    beforeRouteUpdate(to, from, next) {
        console.log(to);
        console.log(from);
        next()
    },
    mounted() {
        setTimeout(() => {
            this.$router.push(
                {
                    path: "/detail?id=456",
                },
            )
        }, 3000)
    }
}
</script>